# -*- coding: utf-8 -*-
from flask import current_app, g
from app import create_app

app = create_app()


@app.before_request
def set_config():
    g.api_url = current_app.config['GAME_API']
    g.analyze_url = current_app.config['ANALYZE_URL']


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5001)
